package com.mo.ld.activity.view

import android.os.Bundle
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.mo.ld.activity.view.chart.BarChartActivity
import com.mo.ld.activity.view.chart.LineChartActivity
import com.mo.ld.base.BBaseListActivity
import com.mo.ld.bean.ActionBean
import com.mo.ld.modle.getMainAdapter2
import com.mo.lib.utils.startActivity
import com.mo.lib.view.recyclerview.layoutG

/**
 * @ author：mo
 * @ data：2022/8/24:14:20
 * @ 功能：图表
 */
class AndroidchartActivty : BBaseListActivity<ActionBean>() {
    override fun initView(savedInstanceState: Bundle?) {
        super.initView(savedInstanceState)
        viewBinding.krvBaseList.layoutG(3)
    }

    override fun getList(page: Int) {
    }

    override fun getMore(page: Int) {
    }

    override fun creatAdaper(): BaseQuickAdapter<ActionBean, BaseViewHolder> {
        return getMainAdapter2(mutableListOf(
            ActionBean("柱状图") {
            startActivity<BarchartActivty2>()
        },
            ActionBean("折线图") {
                startActivity<LineChartActivity>()
            }

        ))
    }


}